// -----------------------
// General
// -----------------------
.magnify-modal {
    position: absolute;
    z-index: 1090;
    width: 320px;
    height: 320px;
    background-color: #111;
    background-color: rgba(0, 0, 0, .85);
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, .3);
    cursor: default;
}

// .magnify-maximize {
//     top: 0 !important;
//     left: 0 !important;
//     width: 100% !important;
//     height: 100% !important;
// }
.magnify-header {
    position: relative;
    z-index: 2;
    height: 40px;
    color: #fff;
    .magnify-toolbar {
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 40px;
    }
}

.magnify-title {
    margin-right: 80px;
    padding: 13px 10px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    user-select: none;
    overflow: hidden;
}

.magnify-stage {
    position: absolute;
    top: 40px;
    right: 10px;
    bottom: 40px;
    left: 10px;
    z-index: 1;
    border: 1px solid #ccc;
    overflow: hidden;
}

.magnify-image {
    position: relative;
    display: inline-block;
    &.init-size {
        max-width: 100%;
        max-height: 100%;
    }
}

.magnify-footer {
    position: absolute;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 40px;
    color: #fff;
    text-align: center;
    .magnify-toolbar {
        display: inline-block;
        height: 40px;
    }
}

.magnify-toolbar {
    font-size: 0;
}

.magnify-button {
    display: inline-block;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
    font-size: 14px;
    color: #ccc;
    text-align: center;
    background: none;
    border-width: 0;
    border-radius: 0;
    cursor: pointer;
    outline: none;
    &:hover {
        color: #fff;
    }
    &.magnify-button-close:hover {
        background-color: #ff4545;
    }
    &.magnify-button-maximize:hover {
        background-color: #525252;
    }
}

// loading
.magnify-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    &::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 100%;
        vertical-align: middle;
        overflow: hidden;
    }
    i {
        font-size: 32px;
    }
}
